API Documentation
NodeManager.h
1 // NodeManager.h
3 //
5 
6 namespace nkGraphics
7 {
17  class DLL_GRAPHICS_EXPORT NodeManager final : public nkCommon::SingletonClass<NodeManager>
18  {
19  public :
20 
30  Node* create () ;
37  Node* createOrRetrieve (const std::string_view& name) ;
44  Node* get (const std::string_view& name) const ;
53  Node* getByIndex (unsigned int index) const ;
60  void rename (const std::string_view& currentName, const std::string_view& newName) ;
66  void erase (const std::string_view& name) ;
67  } ;
68 }
nkGraphics::NodeManager::rename
void rename(const std::string_view &currentName, const std::string_view &newName)
nkGraphics::NodeManager::create
Node * create()
nkGraphics::NodeManager::erase
void erase(const std::string_view &name)
nkGraphics::NodeManager
Manages the nodes available in the component.
Definition: NodeManager.h:18
nkGraphics::NodeManager::createOrRetrieve
Node * createOrRetrieve(const std::string_view &name)
nkGraphics::Node
Represents a node in a scene graph.
Definition: Node.h:14
nkGraphics
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7
nkGraphics::NodeManager::getByIndex
Node * getByIndex(unsigned int index) const
nkGraphics::NodeManager::get
Node * get(const std::string_view &name) const